package OOday03;

public class SwimTest {
    public static void main(String[] args) {
        Dog dog = new Dog("小黑",2,"黑");
        dog.eat();//dog类重写之后的
        dog.drink();//复用animal类的
        dog.LookHome();//dog类所特有的
        dog.swim();//dog类重写之后的

        Chick chick = new Chick("小白",1,"白");
        chick.eat();//chick类重写之后的
        chick.drink();//复用animal类的
        chick.LayEggs();//chick类特有的

        Fish fish = new Fish("小金",1,"金");
        fish.eat();//fish类重写之后的
        fish.drink();//复用animal类的
        fish.swim();//fish类重写之后的
    }
}
